import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { LoginLogQuery, LoginLogPageResult, LoginLogForm } from './types';

/**
 * 获取角色分页数据
 *
 * @param queryParams
 */
export function getLoginLogPage(
  data?: any
) {
  return request({
    url: '/api/sys/loginLog/list',
    method: 'post',
    data
  });
}

/**
 * 删除
 *
 * @param id
 */
export function deleteLoginlog(data: any) {
  return request({
    url: '/api/sys/loginLog/delete',
    method: 'post',
    data
  });
}
